#!/bin/bash

TAG="v0.0.1"
if [ -n "$1" ]; then
  TAG=$1
fi

CONSOLE_DOCKER_IMAGE=www.registry.it/gvcloud/gvcloud-console:$TAG
CONSOLE_DOCKER_IMAGE=${CONSOLE_DOCKER_IMAGE//\//\\/}
echo "Update Image : ${CONSOLE_DOCKER_IMAGE}"


sed "s/CONSOLE_DOCKER_IMAGE/${CONSOLE_DOCKER_IMAGE}/g" gvcloud-console-deployment.yaml.tpl > k8s/yaml/gvcloud-console-deployment.yaml
